package com.qixin.api.mapper;

import com.qixin.api.bean.ComCar;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 租车，车辆信息 Mapper 接口
 * </p>
 *
 * @author 张子艺
 * @since 2018-10-02
 */
public interface ComCarMapper extends BaseMapper<ComCar> {
    List<ComCar> findCarByParama(@Param("carSize") String carSize,@Param("carKm") String carKm,@Param("base") String base,@Param("carBrand") String carBrand);
    List<ComCar> findCarByParam(@Param("param") Map map);
    ComCar findCarByCarId(@Param("carId") Long carId);
    List<ComCar> selectMyPage(@Param("map") Map map);
    Integer countMyPage(@Param("map")  Map map);
	List<ComCar> selectBill(@Param("map") Map map);
    //车辆明细列表查询
    List<ComCar> selectMyPage2(@Param("map") Map map );
    Integer countMyPage2(@Param("map")  Map map);
    Integer countMyPage5(@Param("map")  Map map);
    List<ComCar> search(@Param("map") Map map,@Param("param") Map mapl);
    List<ComCar> searchcardetail(@Param("map") Map map,@Param("param") Map mapl);
    List<ComCar> selectALL(@Param("map") Map map);
    Integer countMyPage3(@Param("map")  Map map);
    List<ComCar> selectaLL(@Param("map") Map map);
    boolean deleteAll(ComCar comCar);
    int updatesentsu(@Param("id") Long id);
    int updatesentsu2(@Param("id") Long id);
    int updatesentsu3(@Param("id") Long id);
    int updatesentsu4(@Param("id") Long id);
    List<ComCar> selectcar(@Param("map") Map map);
    Integer countMyPage4(@Param("map")  Map map);

    //平台已租车辆
    List<ComCar> selecta(@Param("map") Map map );
    Integer counta(@Param("map")  Map map);

}